<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>正则表达式</title>
</head>
<body>
            <script>
                var s = /^(13|15|18|17)[0-9]{9}$/;
                var h = '18298018390';
                var g = h.match(s);
                console.log(g)
            </script>
</body>
</html>